package com.meiqiongproperty.yiguanjia.fragment.home.tenement;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.meiqiongproperty.yiguanjia.R;
import com.meiqiongproperty.yiguanjia.activity.GenericFragmentActivity;
import com.meiqiongproperty.yiguanjia.databinding.PropertyFeeLayoutBinding;
import com.meiqiongproperty.yiguanjia.db.utils.DBUserUtils;
import com.meiqiongproperty.yiguanjia.fragment.BaseFragment;

/**
 * 物业缴费
 * @version V1.0
 * @packge com.meiqiongproperty.yiguanjia.fragment.home.tenement
 * @User ChenJing
 * @Date 2017/4/24
 */

public class PropertyFeeFragment extends BaseFragment {
    PropertyFeeLayoutBinding binding;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = DataBindingUtil.inflate(inflater, R.layout.property_fee_layout, container, false);
        binding.setClick(this);
        binding.navigation.setTitle("物业缴费");
        binding.navigation.setLeftClick(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                sendKeyBackEvent();
            }
        });
        binding.address.setText(DBUserUtils.getAddressEnd(getActivity()));
        binding.city.setText(DBUserUtils.getmDefaultHouse(getActivity()).getCity()+"市");
        return binding.getRoot();
    }

    public void ggsyf_Click(View view) {
        GenericFragmentActivity.start(getActivity(),UtilitiesFragment.class,new Bundle());
    }

    public void ToWaterFeeFragment(View view){
        GenericFragmentActivity.start(getActivity(),WaterFeeFragment.class,new Bundle());
    }

    public void toBoltFeeFragment(View view){
        GenericFragmentActivity.start(getActivity(),BoltFeeFragment.class,new Bundle());
    }
    public void toFixedLineBroadbandFragment(View view){
        GenericFragmentActivity.start(getActivity(),FixedLineBroadbandFragment.class,new Bundle());
    }

    public void tcfClick(View view){
        GenericFragmentActivity.start(getActivity(),ParkingFeeFragment.class,new Bundle());
    }
    public void yxds(View v){
        GenericFragmentActivity.start(getActivity(),CableTVFeeFragment.class,new Bundle());
    }
    public void rqf(View v){
        GenericFragmentActivity.start(getActivity(),GasFeeFragment.class,new Bundle());
    }

}
